#ifndef PURGETHREAD_H
#define PURGETHREAD_H

#include <QtSql>
#include <QThread>
#include <QTest>



class PurgeThread : public QThread
{

public:
    PurgeThread(QSqlDatabase &purgeDatabase, QSqlDatabase &purgeTimeDatabase);
    ~PurgeThread();
    QSqlDatabase *purgeDatabase;
    QSqlDatabase *purgeTimeDatabase;
    QDateTime importedTime;
    QString raw_copy;

    int curr_yr;
    int curr_mth;
    int curr_day;
    int curr_hr;
    int curr_min;
    int curr_sec;

    int purge_yr;
    int purge_mth;
    int purge_day;
    int purge_hr;
    int purge_min;
    int purge_sec;

    QString purgeTimeSetting;
    bool hasPurgeTime;

protected:
    void run();
};

#endif // PURGETHREAD_H
